import { Injectable } from '@angular/core';
import { Http } from '@angular/http';

@Injectable()
export class LoginService {
  private loginUrl = 'http://localhost:3000/login';
  constructor(private $http: Http) { }
  // 获取登录接口
  loginApi() {
    return this.$http.get(this.loginUrl).toPromise();
  }

}
